package com.hzhr.iot.collect.entity;


import com.hzhr.iot.collect.constant.MessageFieldKeyEnum;
import com.hzhr.iot.collect.constant.RequestResponseFlagEnum;

import java.util.Map;

public class CachedCommandEntity {
	private String deviceId;//设备号
	
	private String command;//命令
	private Integer protocolId;//协议id
	private String messageId;//报文id
	private Map<MessageFieldKeyEnum, Object> messageObj;//报文对象
	private RequestResponseFlagEnum requestResponseFlag;//如果该标志为响应，则必是服务器端发起
	
	private int delaySec;//延时(单位：秒)
	private int totalDelaySec;//总延时(单位：秒)(距离开始时间的延时)


	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	public int getDelaySec() {
		return delaySec;
	}
	public void setDelaySec(int delaySec) {
		this.delaySec = delaySec;
	}
	public RequestResponseFlagEnum getRequestResponseFlag() {
		return requestResponseFlag;
	}
	public void setRequestResponseFlag(RequestResponseFlagEnum requestResponseFlag) {
		this.requestResponseFlag = requestResponseFlag;
	}
	public int getTotalDelaySec() {
		return totalDelaySec;
	}
	public void setTotalDelaySec(int totalDelaySec) {
		this.totalDelaySec = totalDelaySec;
	}
	public Integer getProtocolId() {
		return protocolId;
	}
	public void setProtocolId(Integer protocolId) {
		this.protocolId = protocolId;
	}
	public String getMessageId() {
		return messageId;
	}
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}
	public Map<MessageFieldKeyEnum, Object> getMessageObj() {
		return messageObj;
	}
	public void setMessageObj(Map<MessageFieldKeyEnum, Object> messageObj) {
		this.messageObj = messageObj;
	}
	
}
